package br.mikhas.lab.scanner;

import java.util.Arrays;

public class DenyMultipleTransition extends Transition {

	private final char[] denied;

	public DenyMultipleTransition(State state, char[] denied) {
		super(state);
		Arrays.sort(denied);
		this.denied = denied;
	}

	@Override
	boolean accept(char c) {
		return Arrays.binarySearch(this.denied, c) == -1;
	}

}
